package com.knife.oauth.domain.entity;

import java.io.Serializable;
import java.util.Date;

/**
 * iam_permission
 * @author 
 */
public class IamPermission implements Serializable {
    private Long id;

    /**
     * 权限的标识
     */
    private String code;

    /**
     * 权限对应的api路径
     */
    private String path;

    /**
     * 请求的http方法
     */
    private String method;

    /**
     * 权限描述
     */
    private String description;

    /**
     * 权限对应的方法名
     */
    private String action;

    /**
     * 是否公开的权限
     */
    private Byte publicAccess;

    /**
     * 是否需要登录才能访问的权限
     */
    private Byte loginAccess;

    private Long objectVersionNumber;

    private Long createdBy;

    private Date creationDate;

    private Long lastUpdatedBy;

    private Date lastUpdateDate;

    private static final long serialVersionUID = 1L;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public String getMethod() {
        return method;
    }

    public void setMethod(String method) {
        this.method = method;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getAction() {
        return action;
    }

    public void setAction(String action) {
        this.action = action;
    }

    public Byte getPublicAccess() {
        return publicAccess;
    }

    public void setPublicAccess(Byte publicAccess) {
        this.publicAccess = publicAccess;
    }

    public Byte getLoginAccess() {
        return loginAccess;
    }

    public void setLoginAccess(Byte loginAccess) {
        this.loginAccess = loginAccess;
    }

    public Long getObjectVersionNumber() {
        return objectVersionNumber;
    }

    public void setObjectVersionNumber(Long objectVersionNumber) {
        this.objectVersionNumber = objectVersionNumber;
    }

    public Long getCreatedBy() {
        return createdBy;
    }

    public void setCreatedBy(Long createdBy) {
        this.createdBy = createdBy;
    }

    public Date getCreationDate() {
        return creationDate;
    }

    public void setCreationDate(Date creationDate) {
        this.creationDate = creationDate;
    }

    public Long getLastUpdatedBy() {
        return lastUpdatedBy;
    }

    public void setLastUpdatedBy(Long lastUpdatedBy) {
        this.lastUpdatedBy = lastUpdatedBy;
    }

    public Date getLastUpdateDate() {
        return lastUpdateDate;
    }

    public void setLastUpdateDate(Date lastUpdateDate) {
        this.lastUpdateDate = lastUpdateDate;
    }
}